package me.flyray.bsin.server.domain._gen;

import java.util.Map;
import java.util.HashMap;
import java.util.Arrays;
import java.util.List;

import java.io.Serializable;

import me.flyray.bsin.server.domain.SysRegion;

// tell cpd to start ignoring code - CPD-OFF
/**
 *  行政区划: sys_region
 */
@SuppressWarnings({"PMD"})
public class _SysRegion implements Serializable{
    
    /* 区域id: REGION_ID BIGINT */
    public static final String PROP_NAME_regionId = "regionId";
    public static final int PROP_ID_regionId = 1;
    
    /* 行政区划代码: CODE VARCHAR */
    public static final String PROP_NAME_code = "code";
    public static final int PROP_ID_code = 2;
    
    /* 父级id: PARENT_CODE VARCHAR */
    public static final String PROP_NAME_parentCode = "parentCode";
    public static final int PROP_ID_parentCode = 3;
    
    /* 地区名称: NAME VARCHAR */
    public static final String PROP_NAME_name = "name";
    public static final int PROP_ID_name = 4;
    
    /* 层级: LAYER INTEGER */
    public static final String PROP_NAME_layer = "layer";
    public static final int PROP_ID_layer = 5;
    
    /* 排序号,1:省级,2:地市,3:区县: SORT INTEGER */
    public static final String PROP_NAME_sort = "sort";
    public static final int PROP_ID_sort = 6;
    
    /* 显示,1:显示,0:隐藏: STATUS TINYINT */
    public static final String PROP_NAME_status = "status";
    public static final int PROP_ID_status = 7;
    
    /* 备注: REMARK VARCHAR */
    public static final String PROP_NAME_remark = "remark";
    public static final int PROP_ID_remark = 8;
    
    /* 创建时间: CREATE_TIME DATETIME */
    public static final String PROP_NAME_createTime = "createTime";
    public static final int PROP_ID_createTime = 9;
    
    /* 修改时间: UPDATE_TIME DATETIME */
    public static final String PROP_NAME_updateTime = "updateTime";
    public static final int PROP_ID_updateTime = 10;
    

    private static int _PROP_ID_BOUND = 11;

    

    public static final List<String> PK_PROP_NAMES = Arrays.asList(PROP_NAME_regionId);
    public static final int[] PK_PROP_IDS = new int[]{PROP_ID_regionId};

    private static final String[] PROP_ID_TO_NAME = new String[11];
    private static final Map<String,Integer> PROP_NAME_TO_ID = new HashMap<>();
    static{
      
          PROP_ID_TO_NAME[PROP_ID_regionId] = PROP_NAME_regionId;
          PROP_NAME_TO_ID.put(PROP_NAME_regionId, PROP_ID_regionId);
      
          PROP_ID_TO_NAME[PROP_ID_code] = PROP_NAME_code;
          PROP_NAME_TO_ID.put(PROP_NAME_code, PROP_ID_code);
      
          PROP_ID_TO_NAME[PROP_ID_parentCode] = PROP_NAME_parentCode;
          PROP_NAME_TO_ID.put(PROP_NAME_parentCode, PROP_ID_parentCode);
      
          PROP_ID_TO_NAME[PROP_ID_name] = PROP_NAME_name;
          PROP_NAME_TO_ID.put(PROP_NAME_name, PROP_ID_name);
      
          PROP_ID_TO_NAME[PROP_ID_layer] = PROP_NAME_layer;
          PROP_NAME_TO_ID.put(PROP_NAME_layer, PROP_ID_layer);
      
          PROP_ID_TO_NAME[PROP_ID_sort] = PROP_NAME_sort;
          PROP_NAME_TO_ID.put(PROP_NAME_sort, PROP_ID_sort);
      
          PROP_ID_TO_NAME[PROP_ID_status] = PROP_NAME_status;
          PROP_NAME_TO_ID.put(PROP_NAME_status, PROP_ID_status);
      
          PROP_ID_TO_NAME[PROP_ID_remark] = PROP_NAME_remark;
          PROP_NAME_TO_ID.put(PROP_NAME_remark, PROP_ID_remark);
      
          PROP_ID_TO_NAME[PROP_ID_createTime] = PROP_NAME_createTime;
          PROP_NAME_TO_ID.put(PROP_NAME_createTime, PROP_ID_createTime);
      
          PROP_ID_TO_NAME[PROP_ID_updateTime] = PROP_NAME_updateTime;
          PROP_NAME_TO_ID.put(PROP_NAME_updateTime, PROP_ID_updateTime);
      
    }

    
    /* 区域id: REGION_ID */
    private java.lang.Long _regionId;
    
    /* 行政区划代码: CODE */
    private java.lang.String _code;
    
    /* 父级id: PARENT_CODE */
    private java.lang.String _parentCode;
    
    /* 地区名称: NAME */
    private java.lang.String _name;
    
    /* 层级: LAYER */
    private java.lang.Integer _layer;
    
    /* 排序号,1:省级,2:地市,3:区县: SORT */
    private java.lang.Integer _sort;
    
    /* 显示,1:显示,0:隐藏: STATUS */
    private java.lang.Byte _status;
    
    /* 备注: REMARK */
    private java.lang.String _remark;
    
    /* 创建时间: CREATE_TIME */
    private java.time.LocalDateTime _createTime;
    
    /* 修改时间: UPDATE_TIME */
    private java.time.LocalDateTime _updateTime;
    

    public _SysRegion(){
    }

    protected SysRegion newInstance(){
       return new SysRegion();
    }

    public String orm_entityName() {
      return "me.flyray.bsin.server.domain.SysRegion";
    }

    
    /**
     * 区域id: REGION_ID
     */
    public java.lang.Long getRegionId(){
         //onPropGet(PROP_ID_regionId);
         return _regionId;
    }

    /**
     * 区域id: REGION_ID
     */
    public void setRegionId(java.lang.Long value){
        this._regionId = value;
    }
    
    /**
     * 行政区划代码: CODE
     */
    public java.lang.String getCode(){
         //onPropGet(PROP_ID_code);
         return _code;
    }

    /**
     * 行政区划代码: CODE
     */
    public void setCode(java.lang.String value){
        this._code = value;
    }
    
    /**
     * 父级id: PARENT_CODE
     */
    public java.lang.String getParentCode(){
         //onPropGet(PROP_ID_parentCode);
         return _parentCode;
    }

    /**
     * 父级id: PARENT_CODE
     */
    public void setParentCode(java.lang.String value){
        this._parentCode = value;
    }
    
    /**
     * 地区名称: NAME
     */
    public java.lang.String getName(){
         //onPropGet(PROP_ID_name);
         return _name;
    }

    /**
     * 地区名称: NAME
     */
    public void setName(java.lang.String value){
        this._name = value;
    }
    
    /**
     * 层级: LAYER
     */
    public java.lang.Integer getLayer(){
         //onPropGet(PROP_ID_layer);
         return _layer;
    }

    /**
     * 层级: LAYER
     */
    public void setLayer(java.lang.Integer value){
        this._layer = value;
    }
    
    /**
     * 排序号,1:省级,2:地市,3:区县: SORT
     */
    public java.lang.Integer getSort(){
         //onPropGet(PROP_ID_sort);
         return _sort;
    }

    /**
     * 排序号,1:省级,2:地市,3:区县: SORT
     */
    public void setSort(java.lang.Integer value){
        this._sort = value;
    }
    
    /**
     * 显示,1:显示,0:隐藏: STATUS
     */
    public java.lang.Byte getStatus(){
         //onPropGet(PROP_ID_status);
         return _status;
    }

    /**
     * 显示,1:显示,0:隐藏: STATUS
     */
    public void setStatus(java.lang.Byte value){
        this._status = value;
    }
    
    /**
     * 备注: REMARK
     */
    public java.lang.String getRemark(){
         //onPropGet(PROP_ID_remark);
         return _remark;
    }

    /**
     * 备注: REMARK
     */
    public void setRemark(java.lang.String value){
        this._remark = value;
    }
    
    /**
     * 创建时间: CREATE_TIME
     */
    public java.time.LocalDateTime getCreateTime(){
         //onPropGet(PROP_ID_createTime);
         return _createTime;
    }

    /**
     * 创建时间: CREATE_TIME
     */
    public void setCreateTime(java.time.LocalDateTime value){
        this._createTime = value;
    }
    
    /**
     * 修改时间: UPDATE_TIME
     */
    public java.time.LocalDateTime getUpdateTime(){
         //onPropGet(PROP_ID_updateTime);
         return _updateTime;
    }

    /**
     * 修改时间: UPDATE_TIME
     */
    public void setUpdateTime(java.time.LocalDateTime value){
        this._updateTime = value;
    }
    
}
// resume CPD analysis - CPD-ON
